﻿using System;

namespace Hopscotch.Presentation.Common
{
	[Flags]
	public enum ErrorType
	{
		Info = 1,
		Warning = 2,
		Error = 4
	}

	public sealed class DataErrorInfo
	{
		public DataErrorInfo(ErrorType errorType, string description)
		{
			this.ErrorType = errorType;
			this.Description = description;
		}

		public ErrorType ErrorType { get; set; }
		public string Description { get; set; }

		public override string ToString()
		{
			return string.Format("{0}: {1}", ErrorType, Description);
		}
	}
}
